//
//  CommFunc.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/17.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface CommFunc : NSObject

+ (CGSize)sizeWithString:(NSString *)string
                    font:(UIFont *)font
                     max:(CGSize)maxSize;

+ (NSString*)getImageBase64String:(UIImage *)image;
+ (NSData *)getDecodedDataFromBase64String:(NSString *)base64String;
+ (BOOL)validateIDCardNumber:(NSString *)value;
+ (BOOL)isPureInt:(NSString*)string;
+ (BOOL)isValidateMobile:(NSString *)mobile;
+ (BOOL)isValidateEmail: (NSString *)candidate;
+ (int)getLunBoViewHeight;
+ (int)getMyselfLunBoViewHeight;
+ (int)getMyselfHeadImageTopY;
+ (int)getMyselfHeadImageWidth;
+ (int)getMyselfHeadImageHeight;

+ (int)getMyselfLevelY;
+ (int)getMyselfMidiIdAlreadyLoginY;
+ (int)getMyselfMidiIdNotLoginY;

+ (int)getMyselfHeadCellHeight;

+ (BOOL)isConnectionAvailable;

+ (NSString *)getMusicBaseLevel:(NSString *)level;

@end




















